<%@ page contentType="text/html;charset=UTF-8" language="java" import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> 
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<chiptrack:checkLogon sourcePage="/jsp/operations/sort_binsetup.jsp"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">

 function saveProcess(theForm)
   {   
      theForm.action.value = "SaveSortBins";
      theForm.submit();
   }

</SCRIPT>


<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@ include file="/jsp/operations/operations_menu.jsp"%>

	</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<html:form name="sortProcessForm" method="post" action="/sortProcess.do" type="com.scalar.chiptrack.operations.process.forms.SortProcessForm" enctype="multipart/form-data">
<nested:nest property="sortProcess" >
<center><span class="NArialW">Sort Bin Information</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>


<table border="0" width="90%" align=right>

  <tr><td colspan=5><img src="<%= chipTracContext %>/jsp/includes/images/spacer.gif" height=15></td></tr>
  <tr><td colspan=5>
  <table border="0" width="90%" bordercolor="#FFFFFF">
  
    <tr>
     <td width="20%" bgcolor="#993333" align="center"><font class="NArialL"><font color="#FFFFFF">Bin
          Number</font></td>
     <td width="40%" bgcolor="#993333" align="center"><font class="NArialL"><font color="#FFFFFF">Type</font></td>
     <td width="30%" bgcolor="#993333" align="center"><font class="NArialL"><font color="#FFFFFF">Description</font></td>
    </tr>
    <nested:iterate id="SortBins" property="sortBins">
    <tr>
      <td width="20%" align="center" bgcolor="#CCCCCC">
        <font class="NArialL"><nested:write property="binNo" /></font>
        <nested:hidden property="binNo" />
      </td>        
      <td width="40%" align="center" bgcolor="#CCCCCC">
        <nested:radio property="binType" value="Accept" /> <font class="NArialL">Accept </font>
      	<nested:radio property="binType" value="Reject" /> <font class="NArialL">Reject </font>
        <nested:radio property="binType" value="N/A" /> <font class="NArialL">N/A</font>
      </td>
      <td width="30%" align="center" bgcolor="#CCCCCC">
         <nested:text property="binDescription"  styleClass="txfield"  size="20" />
      </td>
    </tr>
    </nested:iterate>	
    <tr>
      <td colspan=2>
        <nested:submit property="addSortBins">Add More Bins</nested:submit>
     </td></tr>
  

    <tr><td colspan=2>&nbsp;</td></tr>
    <tr>
      <td align=center colspan=2>
        <a href="javascript:saveProcess(document.sortProcessForm);"><IMG border="0" src="<%= chipTracContext %>/jsp/includes/images/save.gif" onclick="javascript:saveProcess(document.sortProcessForm);" ></a>  	
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <a href="<%=chipTracContext%>/jsp/operations/sort_process.jsp"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif"></a>
     </td></tr>
   </table>

   </td></tr>
    </table>
<input type="hidden" name="action" value="">
</nested:nest>
</html:form>
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%= chipTracContext %>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
